package com.yuanrui.subject.domain.service;

import com.yuanrui.subject.common.entity.PageResult;
import com.yuanrui.subject.domain.entity.SubjectCategoryBO;
import com.yuanrui.subject.domain.entity.SubjectInfoBO;
import com.yuanrui.subject.infra.basic.entity.SubjectInfoEs;

import java.util.List;


public interface SubjectInfoDomainService {

    /**
     * 新增题目信息
     */
    void add(SubjectInfoBO subjectInfoBO);

    /**
     * 分页查询题目信息
     * @param subjectInfoBO 查询条件
     * @return 分页结果
     */
    PageResult<SubjectInfoBO> getSubjectPage(SubjectInfoBO subjectInfoBO);

    /**
     * 查询题目详情信息
     * @param subjectInfoBO 查询条件
     * @return 题目详情
     */
    SubjectInfoBO querySubjectInfo(SubjectInfoBO subjectInfoBO);

    PageResult<SubjectInfoEs> getSubjectPageBySearch(SubjectInfoBO subjectInfoBO);

    List<SubjectInfoBO> getContributeList();
}
